import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import 'swiper/css/swiper.min.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VeeValidate from 'vee-validate';
Vue.use(ElementUI);
Vue.use(VeeValidate)
import Footerover from '@/components/Footerover'
import Bottom from "@/components/Bottom"
import Header from "@/components/Header"
// import '@/mock/mockServer' 
//注册Header组件
Vue.component('Footerover',Footerover)
Vue.component('Bottom',Bottom)
Vue.component('Header',Header)
// Vue.component('Footer',Footer)

Vue.config.productionTip = false
// 图片懒加载
import loading from './assets/loading.gif'  
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload,{loading})


// 全局注册组件
import Pagination from "@/components/Pagination";
Vue.component('Pagination',Pagination)

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate(){
    Vue.prototype.$bus = this
  }
}).$mount('#app')
